package com.usian.admin.feign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmNews;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("leadnews-wemedia")
public interface WmnewsFeign {
    @GetMapping("/api/v1/wmnews/findById/{id}")
    WmNews findById(@PathVariable Integer id);
    @PostMapping("/api/v1/wmnews/update")
    ResponseResult update(@RequestBody WmNews wmNews);
    @GetMapping("/api/v1/wmnews/getIds")
    List<Integer> getIds();
    @PostMapping
    List<WmNews> findList();
}
